setAlphabeticShortcut
open fun setAlphabeticShortcut(@NonNull item: MenuItem, alphaChar: Char, alphaModifiers: Int)(source)
Change the alphabetic shortcut associated with this item. The shortcut will be triggered when the key that generates the given character is pressed along with the modifier keys. Case is not significant and shortcut characters will be displayed in lower case. Note that menu items with the characters '\b' or '\n' as shortcuts will get triggered by the Delete key or Carriage Return key, respectively.
See Menu for the menu types that support shortcuts.
Parameters
item
item for which to set the shortcut.
alphaChar
The alphabetic shortcut key. This is the shortcut when using a keyboard with alphabetic keys.
alphaModifiers
The modifier associated with the shortcut. It should be a combination of META_META_ON, META_CTRL_ON, META_ALT_ON, META_SHIFT_ON, META_SYM_ON, META_FUNCTION_ON.